package com.bt.table.ppt;

/**
 * Bis_layot_glId entity. @author MyEclipse Persistence Tools
 */

public class Bis_layot_glId implements java.io.Serializable {

	// Fields

	private String layotg_id_fk;
	private String layot_id_fk;
	private String x_axis;
	private String y_axis;

	// Constructors

	/** default constructor */
	public Bis_layot_glId() {
	}

	/** full constructor */
	public Bis_layot_glId(String layotg_id_fk, String layot_id_fk,
			String x_axis, String y_axis) {
		this.layotg_id_fk = layotg_id_fk;
		this.layot_id_fk = layot_id_fk;
		this.x_axis = x_axis;
		this.y_axis = y_axis;
	}

	// Property accessors

	public String getLayotg_id_fk() {
		return this.layotg_id_fk;
	}

	public void setLayotg_id_fk(String layotg_id_fk) {
		this.layotg_id_fk = layotg_id_fk;
	}

	public String getLayot_id_fk() {
		return this.layot_id_fk;
	}

	public void setLayot_id_fk(String layot_id_fk) {
		this.layot_id_fk = layot_id_fk;
	}

	public String getX_axis() {
		return this.x_axis;
	}

	public void setX_axis(String x_axis) {
		this.x_axis = x_axis;
	}

	public String getY_axis() {
		return this.y_axis;
	}

	public void setY_axis(String y_axis) {
		this.y_axis = y_axis;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_layot_glId))
			return false;
		Bis_layot_glId castOther = (Bis_layot_glId) other;

		return ((this.getLayotg_id_fk() == castOther.getLayotg_id_fk()) || (this
				.getLayotg_id_fk() != null
				&& castOther.getLayotg_id_fk() != null && this
				.getLayotg_id_fk().equals(castOther.getLayotg_id_fk())))
				&& ((this.getLayot_id_fk() == castOther.getLayot_id_fk()) || (this
						.getLayot_id_fk() != null
						&& castOther.getLayot_id_fk() != null && this
						.getLayot_id_fk().equals(castOther.getLayot_id_fk())))
				&& ((this.getX_axis() == castOther.getX_axis()) || (this
						.getX_axis() != null && castOther.getX_axis() != null && this
						.getX_axis().equals(castOther.getX_axis())))
				&& ((this.getY_axis() == castOther.getY_axis()) || (this
						.getY_axis() != null && castOther.getY_axis() != null && this
						.getY_axis().equals(castOther.getY_axis())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getLayotg_id_fk() == null ? 0 : this.getLayotg_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getLayot_id_fk() == null ? 0 : this.getLayot_id_fk()
						.hashCode());
		result = 37 * result
				+ (getX_axis() == null ? 0 : this.getX_axis().hashCode());
		result = 37 * result
				+ (getY_axis() == null ? 0 : this.getY_axis().hashCode());
		return result;
	}

}